from django.views.generic.simple import direct_to_template

def auto_direct_to_template(request, extra_context=None, mimetype=None, **kwargs):
   return direct_to_template(request, request.path[1:], extra_context, mimetype, **kwargs)

